package com.surprise.db.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.surprise.base.bo.IHasIdInterface;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * BUser.java
 * @author nick
 * @since 2016年1月17日
**/
@Data
@Entity(name = "buser")
@Accessors(chain = true)
public class BUser implements IHasIdInterface {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    protected Long id;
    @JsonIgnore
    protected Date addtime;
    @JsonIgnore
    protected Date updatetime;
    
    private String name = ""; // 名称
    private String password = ""; // 密码
    private int role; // 角色
    private String phone = ""; // 手机
    
    private String developer = ""; // 开发商
    private String operator = ""; // 运营方
    private String address = ""; // 地址
    private String chargePerson = ""; // 负责人
    private String legalPerson = ""; // 法人
    private String director = ""; // 总监
    private String logoPic = ""; // logo
    private String projectPic = ""; // 项目图片
    
    private String idPic1 = ""; // 证件图片正面
    private String idPic2 = ""; // 证件图片背面
    private long cityId = 0L; // 城市id
    private long districtid = 0L; // 区id
    
    // 下面只有品牌商有
    private String gatePic = ""; // 店铺门头
    private long mallid = 0L; // 商城id
    private long shopid = 0L; // 店铺id
    private String company = ""; // 公司
}
